package com.example.eduservice.service;

import com.example.common.commonsutils.R;
import com.example.eduservice.service.fallback.UCenterFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @Author:tjf
 * @Description:
 */
@FeignClient(name = "service-ucenter", fallback = UCenterFeignServiceFallback.class)
public interface UCenterFeignService {
    @GetMapping("/api/ucenter/info")
    R getUserInfoByToken(@RequestHeader("token") String token);
    @GetMapping("/api/ucenter/{id}")
    R getMemberInfoById(@PathVariable("id") String id);
}
